package com.xxm.opengl.triangle

import android.opengl.GLSurfaceView
import javax.microedition.khronos.egl.EGLConfig
import javax.microedition.khronos.opengles.GL10

class Render :GLSurfaceView.Renderer {
    override fun onSurfaceCreated(gl: GL10?, config: EGLConfig?) {
        TriangleJNI.glesInit()
    }

    override fun onSurfaceChanged(gl: GL10?, width: Int, height: Int) {
       TriangleJNI.glesResize(width,height)
    }

    override fun onDrawFrame(gl: GL10?) {
       TriangleJNI.glesRender()
    }
}